<div class="col-sm-12 mt20">
     <div class="panel">
           <div class="panel-body">
                <div class="col-sm-12">
			            <div class="row">	
                      <div class="col-sm-2">
                         <ui-select ng-model="viewcode" ng-change="change(viewcode)" theme="bootstrap" ng-keyup="myKeyup($event)">
                              <ui-select-match placeholder="景区">
                                {{$select.selected.name}}
                              </ui-select-match>
                              <ui-select-choices repeat="item.code as item in  viewarr | filter: $select.search">
                                <span ng-bind-html="item.name | highlight: $select.search"></span>
                              </ui-select-choices>
                        </ui-select>
                      </div>
                        <div class="col-sm-2">
                         <label style="margin-left:20%" class="checkbox-inline" ng-repeat="attr in attrarr">
                            <input type="checkbox" ng-model=attr.value
                            ng-true-value="1" ng-false-value="0"
                            ng-click="checkattr()"
                            > {{attr.name}}
                          </label>
                      </div>
                       <div class="col-sm-2">
                           <ui-select ng-model="searchform.seltype" ng-change="changetype()" theme="bootstrap" ng-keyup="myKeyup($event)">
                              <ui-select-match placeholder="使用时间">
                                {{$select.selected.label}}
                              </ui-select-match>
                              <ui-select-choices repeat="item.value as item in  chaxunarr | filter: $select.search">
                                <span ng-bind-html="item.label | highlight: $select.search"></span>
                              </ui-select-choices>
                        </ui-select>
                      </div>
                    
                      	<div class="col-sm-2" ng-show="showtype == '1'">
                          <input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="date.lable" is-open="date.opened"
                              ng-click="dateOpen($event, date)" placeholder="开始时间" ng-required="true"  close-text="关闭" current-text="今天" clear-text="清除"  readonly/>
                      </div>
                      <div class="col-sm-2" ng-show="showtype == '1'">
                        <input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="date1.lable" is-open="date1.opened"
                              ng-click="dateOpen1($event, date1)" placeholder="结束时间" ng-required="true" close-text="关闭" current-text="今天" clear-text="清除" readonly/>						
                      </div>
                      <!--<div class="col-sm-2" >
                         	<input type="button " class="btn btn-info search form-control" ng-click="load()" value="立即搜索">
                      </div>-->
                      <div class="col-sm-4" ng-show="showtype == '0'">
                         	
                      </div>
                      <div class="col-sm-2" >
                         	<input type="button " class="btn btn-info search form-control" ng-click="load()" value="立即搜索">
                      </div>
			            </div>
              
			            <!--<div class="row">	
                      <div class="col-sm-2">
                      </div>
                        <div class="col-sm-2">
                      </div>
                        <div class="col-sm-2">
                      </div>
                        <div class="col-sm-2">
                      </div>
                        <div class="col-sm-2">
                      </div>
                        <div class="col-sm-2">
                      </div>
			            </div>-->
                </div>
           </div>
     </div>
                  

<div class="panel panel-default">

  <table class="table table-hover table-bordered">
    <thead>
      <tr>
      	<!-- <th class="col-md-1 text-center">
      		<a ng-click="ok(objs)" class="btn btn-default btn-sm">全选</a>
      		<a ng-click="cancel(objs)" class="btn btn-default btn-sm">取消</a>
      	</th> -->
        <th class="col-md-2 text-center">时间</th>
        <th class="col-md-2 text-center">景区名称</th>
        <th class="col-md-3 text-center">商品信息</th>
        <!-- <th class="col-md-1 text-center">商品编号</th> -->
        <!-- <th class="col-md-2 text-center">数量</th> -->
        <th class="col-md-1 text-center">购买数量</th>
        <th class="col-md-1 text-center">使用数量</th>
        <th class="col-md-1 text-center">退票数量</th>
        <!-- <th class="col-md-1 text-center">政府补贴</th> -->
        <th class="col-md-1 text-center">居游结算价</th>
        <th class="col-md-1 text-center">操作</th>
      </tr>
    </thead>
    <tbody>
      <tr ng-repeat="obj in objs | filter:myFilter">
      	<!-- <td class="text-center">
      		<input type="checkbox" name="checkname" ng-checked="obj.check" ng-click="clickbox($index)"> 
      	</td> -->
        <td class="text-center">{{obj.date}}</td>
        <td class="text-center">{{obj.place_name}}</td>
        <td class="">{{obj.type_name}}<br>商品编号：{{obj.goods_code}}<br>商品单价：{{obj.cost_price  * 0.01 | currency : '￥'}}</td>
        <!-- <td class="text-center">{{obj.goods_code}}</td> -->
        <!-- <td class="text-center">
          购买：{{obj.buy}}&nbsp;&nbsp;
          使用：{{obj.used}}&nbsp;&nbsp;
          退票：{{obj.back}}
        </td> -->
        <td class="text-center">{{obj.buy}}</td>
        <td class="text-center">{{obj.used}}</td>
        <td class="text-center">{{obj.back}}</td>
        <!-- <td class="text-center">
            {{(subsidy | arrfilter:'goods_code':'govsubsidy_price':obj.goods_code) * 0.01 | currency : '￥'}}
        </td> -->	
        <td class="text-center">{{obj.cost_price * obj.used  * 0.01 | currency : '￥'}}</td>
        <td class="text-center">
        	<a ng-click="detail(obj)" ng-hide="obj.used == 0" class="btn btn-success btn-sm">使用详情</a>
        </td>
      </tr>

      <tr >
      	<!-- <td class="text-center">
      		<a ng-click="goodscount(objs)" class="btn btn-success btn-sm">多商品统计</a>
      	</td> -->
        <td class="text-center">总计</td>
        <td class="text-center"></td>
        <td class=""></td>
        <td class="text-center">{{total.buy}}</td>
        <td class="text-center">{{total.used}}</td>
        <td class="text-center">{{total.back}}</td>
        <!-- <td class="text-center">{{total.gov * 0.01 | currency : '￥'}}</td> -->
        <td class="text-center">{{total.total * 0.01 | currency : '￥'}}</td>
        <td class="text-center"></td>
      </tr>


    </tbody>
  </table>


</div>
</div>